package com.jiyun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("carorder")
@ApiModel(value = "carorder", description = "公告表，记录公告信息")
public class Carorder {
    // 使用Long类型来接收自增主键的值，因为自增主键的值可能非常大，使用int类型可能会导致溢出
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 对应表中的主键id，使用Long类型更合适接收自增主键的值
    private String orderNumber;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp onSitePaymentTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp workOrderPaymentTime;
    private String myIdentity;
    private String repairIssue1;
    private String repairIssue2;
    private String picture;
    private String description;
    private String repairMethod;
    private String personalName;
    private String phone;
    private String carModel;
    private String repairStatus;

}
